home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / BUSINESS / YCOLECT2.LZH / INSTALL4.BAT < prev    next >
DOS Batch File  |  1991-10-29  |  2KB  |  106 lines

  1. ECHO OFF
  2. IF %1==F GOTO FLOPINS
  3. IF %1==H GOTO HARDINS1
  4. CLS
  5. GO4
  6. :FLOPINS
  7. ECHO OFF
  8. CLS
  9. IF %2==1 GOTO FLOPINS1
  10. IF %2==2 GOTO FLOPINS2
  11. CLS
  12. ECHO  This floppy installation requires that you enter either a '1' or a '2',
  13. ECHO  following your 'GO F' instruction.
  14. GOTO END
  15. :FLOPINS2
  16. GOTO FLOPDOC
  17. :FLOPDOC
  18. GOTO END
  19. :FLOPINS1
  20. GOTO END
  21. :HARDINS1
  22. CLS
  23. echo  
  24. ECHO  This procedure will finish installing all files onto 
  25. ECHO  your hard disk, drive %2. 
  26. echo  
  27. %2:
  28. CD \
  29. CD COLLECT.ACS
  30. COPY A:COLL-C41.EXE >TMP
  31. COLL-C41
  32. DEL COLL-C41.EXE
  33. COPY GO-%2.BAT GO.BAT
  34. COPY A:YESNO.COM >TMP
  35. COPY A:ECOH.COM >TMP
  36. CLS
  37. echo  
  38. ECOH ══════════    Tutorial for program    ══════════
  39. echo  
  40. ECHO  COLLECT is the 10 page tutorial.
  41. ECHO  Would you like to print it out now?
  42. echo  
  43. :YESNO
  44. YESNO
  45. CLS
  46. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO YESNEXT
  47. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO YESPREF
  48. GOTO YESNO
  49. :YESNEXT
  50. CLS
  51. ECHO Please make sure your printer is now turned on and set
  52. ECHO to the 'top of form'. Then press any key to continue.
  53. echo  
  54. PAUSE
  55. CLS
  56. echo  
  57. echo  
  58. ECOH ══════════ Now printing tutorial ══════════
  59. COPY COLLECT LPT1: >TMP
  60. CLS
  61. GOTO YES1
  62. :YESPREF
  63. CLS
  64. echo  
  65. ECOH ══════════    Preface to Tutorial  ══════════
  66. echo  
  67. ECHO  Since you elected not to print COLLECT,
  68. ECHO  Would you like to print the 3 page Preface to the Tutorials instead?
  69. echo  
  70. :YES2
  71. YESNO
  72. CLS
  73. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO YES3
  74. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO YES1
  75. GOTO YES2
  76. :YES3
  77. CLS
  78. echo  
  79. echo  
  80. ECOH ══════════   Printing Preface to Tutorial  ══════════
  81. echo  
  82. COPY PREFACE.TXT LPT1: >TMP
  83. GOTO YES1
  84. :YES1
  85. CLS
  86. echo  
  87. echo  
  88. echo  
  89. ECOH ══════════ Free memory available for program ══════════
  90. echo  
  91. ECHO The program must have 500 kb free memory. Observe the next 
  92. ECHO 'bytes are free.' message below.  If below 500k, then
  93. ECHO enter a 'CONTROL-C' now to stop and remove any memory resident
  94. ECHO programs.  Otherwise enter any other key to continue.
  95. echo  
  96. echo  
  97. MEMORY
  98. echo  
  99. echo  
  100. PAUSE
  101. CLS
  102. GO
  103. GOTO END
  104. :END
  105. echo  
  106.